#define _CRT_SECURE_NO_WARNINGS 1
int removeElement(int* nums, int numsSize, int val)
{
    int i = 0;
    int j = 0;
    for (i = 0; i < numsSize; i++)
    {

        if (nums[i] != val)
        {
            nums[j] = nums[i];
            j++;
        }

    }

    return j;
}